package com.example.demo.auth

abstract class BaseUserInfo {
    /**
     * Gets the value of userId.
     *
     * @return the value of userId
     */
    /**
     * Sets the userId.
     *
     *
     * You can use getUserId() to get the value of userId
     *
     * @param userId userId
     */
    var userId: Long = 0
    /**
     * Gets the value of userType.
     *
     * @return the value of userType
     */
    /**
     * Sets the userType.
     *
     *
     * You can use getUserType() to get the value of userType
     *
     * @param userType userType
     */
    var userType: AuthType? = null

    val userIdentity: String
        get() = String.format("%s-%s", this.userType, this.userId)
}
